<?php
#Thinkphp
header("Content-Type: text/html;charset=utf-8");
echo "拉取start</br>";
#自动拉取
//echo "<pre>".exec("git pull;");
$res = shell_exec("git reset --hard");
$res = shell_exec("git pull 2>&1");
echo $res."</br>";
echo "拉取end";
?>